package ntue.dtd;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

public class Reserve_page extends Activity{
	
	private ImageView imageview;
	private Button button1;
	private int count = 0;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.reserve);
		mainViews();

	}
	
	private void mainViews() {
		imageview = (ImageView) findViewById(R.id.imageView03);	
		button1 = (Button)findViewById(R.id.button5);
	}
	public void okClick(View v) {
		count++;
		if(count>1){
			Intent intent = new Intent();
			intent.setClass(Reserve_page.this, Video_page.class);
			startActivity(intent);
			Reserve_page.this.finish();
		}
		else{
			imageview.setImageDrawable(getResources().getDrawable(R.drawable.worklist));
		}
	}
	
}
